import { ref } from 'vue'

interface Bookmark {
  favicon: string
  title: string
  url: string
}

const bookmarks = ref<Bookmark[]>([])

export default function useBookmarks() {
  function setBookmarks(val: Bookmark[]) {
    bookmarks.value = val
  }
  return {
    bookmarks,
    setBookmarks
  }
}
